package com.pox.guli.service.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pox.guli.service.cms.entity.Ad;
import com.pox.guli.service.cms.entity.vo.AdVo;

import java.util.List;

/**
 * <p>
 * 广告推荐 服务类
 * </p>
 *
 * @author pox21s
 * @since 2022-06-05
 */
public interface AdService extends IService<Ad> {

    /**
     * 链表分页查询
     *
     * @param page  页面
     * @param limit 个数
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.pox.guli.service.cms.entity.vo.AdVo>
     */
    IPage<AdVo> selectPage(Long page, Long limit);

    /**
     * 远程删除图片
     *
     * @param id
     */
    boolean removeAdImageById(String id);

    /**
     * 广告TypeId下的集合
     *
     * @param adTypeId typeId
     * @return java.util.List<com.pox.guli.service.cms.entity.Ad>
     */
    List<Ad> selectByAdTypeId(String adTypeId);
}
